package com.freemalll.merchant.domain.dto.merchantParameters;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.List;

/**
 * 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
public class DTOMerParams {

    @Schema(description = "更新需要传主键")
    private String id;


    @Schema(description = "模板编码")
    private String paramCode;
    /**
     * 模板名称
     */
    @Schema(description = "模板名称")
    @NotBlank(message = "模板名称不能为空")
    private String paramName;

    /**
     * 参数模板说明
     */
    @Schema(description = "参数模板说明")
    private String remark;

    /**
     * 应用板块
     */
    @Schema(description = "应用板块id,多个板块使用,分割")
    private String applyLocation;


    /**
     * 参数详情
     */
    @Schema(description = "参数详情")
//    @NotNull(message = "paramsDetailList不能为空")
//    @Size(min = 1)
    @Valid
    private List<MerParamsDetailDTO> paramsDetailList;

    @Schema(description = "附件详情")
    private ExcelParsingDto excelParsingDto;
}
